package modellayer;

/**
 * The customer class to create customer objects
 * @author Allan Eriksen, Andreas Rye, Casper Madsen, Christian Stidsborg, Stefan Bols
 */

public class PartOrder {
	private int partOrderNo;
	private double amount;
	private int qty;
	private Product productObj;
	private boolean isDummy;
	/**
	 * PartOrder fields
	 * @param partOrderNo
	 * @param amount
	 * @param qty
	 * @param productObj
	 */
	
	/**
	 * Constructor for the PartOrder class
	 * @param partOrderNo
	 * @param amount
	 * @param qty
	 * @param productObj
	 */
	public PartOrder(int partOrderNo, double amount, int qty, Product productObj) {
		super();
		this.partOrderNo = partOrderNo;
		this.amount = amount;
		this.qty = qty;
		this.productObj = productObj;
		this.isDummy = false;
	}
	
	/**
	 * 
	 * @param partOrderNo
	 */
	public PartOrder(int partOrderNo) {
		this.partOrderNo = partOrderNo;
		this.isDummy = true;
	}
	
	/**
	 * Get method for the part order number
	 * @return the partOrderNo
	 */
	public int getPartOrderNo() {
		return partOrderNo;
	}
	/**
	 * Set method for the part order number
	 * @param partOrderNo
	 */
	public void setPartOrderNo(int partOrderNo) {
		this.partOrderNo = partOrderNo;
	}
	/**
	 * Get method for the amount 
	 * @return the amount
	 */
	public double getAmount() {
		return amount;
	}
	/**
	 * Set method for the amount
	 * @param amount
	 */
	public void setAmount(double amount) {
		this.amount = amount;
	}
	/**
	 * Get method for the quantity
	 * @return the qty
	 */
	public int getQty() {
		return qty;
	}
	/**
	 * Set method for the quantity
	 * @param qty 
	 */
	public void setQty(int qty) {
		this.qty = qty;
	}
	/**
	 * Get method for the Product product object
	 * @return the productObj
	 */
	public Product getProductObj() {
		return productObj;
	}
	/**
	 * Set method for the Product product object
	 * @param productObj the productObj to set
	 */
	public void setProductObj(Product productObj) {
		this.productObj = productObj;
	}
	
	/**
	 * @return the isDummy
	 */
	public boolean isDummy() {
		return this.isDummy;
	}
	
	
}
